# $Id$
# Maintainer: Stéphane Gaudreault <stephane@archlinux.org>
# Contributor: juergen <juergen@archlinux.org>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>

pkgname=most
pkgver=5.0.0a
pkgrel=6
pkgdesc="A terminal pager similar to 'more' and 'less'"
arch=('i686' 'x86_64')
depends=('slang')
license=('GPL')
url="http://www.jedsoft.org/most/index.html"
source=(ftp://space.mit.edu/pub/davis/${pkgname}/${pkgname}-${pkgver}.tar.gz
        most-debian.patch
        most-leak-fd.patch)
sha1sums=('99eedb7169754b9a47c7755ac48949d76531e3b2'
          '937796040c69bae3bf735fa3cd734775c582e7d0'
          'c5713e1278febdd0ed434e6e3044feb220b5d525')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  patch -Np1 -i ../most-debian.patch
  patch -Np1 -i ../most-leak-fd.patch
  ./configure --prefix=/usr --sysconfdir=/etc
  make
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make DESTDIR="${pkgdir}" install
}
